<?phpclass decoder{	public function Decode()	{		$ci =& get_instance();				if ($ci->input->get("format") == "xml")		{				}				if ($ci->input->get("format") == "json")		{				$data = json_decode(file_get_contents('php://input'));			$data->ssession = $ci->input->get("session");			if ($data->ssession != "")			{				$ci->load->library('session');				$session = $ci->session->GetByContent($data->ssession);								if ($session->iduser != "")				{					$ci->load->library('user');					$data->userinfo = $ci->user->GetById($session->iduser);				}			}			return $data; 			//var_dump(json_decode(file_get_contents('php://input')));			//return json_decode(file_get_contents('php://input'));		}	}		public function Code($object)	{		$ci =& get_instance();				if ($ci->input->get("format") == "xml")		{				}				if ($ci->input->get("format") == "json")		{				//var_dump(json_decode(file_get_contents('php://input')));			return json_encode($object);		}			}}?>